// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// 辅助编译ES6为ES5语法的
import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
// CSS全局样式
import 'common/stylus/index.styl'
//  快速点击
import fastclick from 'fastclick'
//  懒加载
import VueLazyload from 'vue-lazyload'
Vue.config.productionTip = false
fastclick.attach(document.body)
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import store from './store'
Vue.use(VueAwesomeSwiper)
//  懒加载使用的替换图片
Vue.use(VueLazyload, {
  loading: require('common/image/default.png')
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
